package zju.lzy.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author lzy
 */
@Mapper
public interface GeneralMapper {

//    @Select("select auto_increment from information_schema.tables where table_schema='iotproj' and table_name=#{tabName};")
//    Integer getLastIncrement(@Param("tabName") String tabName);

    @Select("select last_insert_id();")
    Integer getLastIncrement();



}
